<ul>
<?php foreach ($this->get_data('files') as $name => $path) :?>
    <li>
        <a href="javascript:;" onclick="cdn.show('<?php echo $path; ?>');">
        <img src="<?php echo tos_cdn_url('img/icon/folder.png');?>" />
        <span class="name"><?php echo $name;?></span>
        </a>
    </li>
<?php endforeach; ?>
</ul>